package com.qf.bank.entity;/*
 * @author     : XXX
 * @date       : 2022/5/4 14:27
 * @description: some description

 CREATE TABLE IF NOT EXISTS account(
	id INT PRIMARY KEY AUTO_INCREMENT,
	cardNo VARCHAR(20) NOT NULL,
	PASSWORD VARCHAR(20) NOT NULL,
	money DECIMAL(10,2),
	NAME VARCHAR(20),
	address VARCHAR(50),
	phone VARCHAR(11)
);
 */

import java.math.BigDecimal;

public class Account {
    private int id;
    private String cardNo;
    private String password;
    private BigDecimal money;
    private String name;
    private String address;
    private String phone;

    public Account() {
    }

    public Account(int id, String cardNo, String password, BigDecimal money, String name, String address, String phone) {
        this.id = id;
        this.cardNo = cardNo;
        this.password = password;
        this.money = money;
        this.name = name;
        this.address = address;
        this.phone = phone;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", cardNo='" + cardNo + '\'' +
                ", password='" + password + '\'' +
                ", money=" + money +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
}
